<%@ page language="java" contentType="text/html; charset=UTF-8"%>
<%
	boolean scriptTag = false;

	String cb = request.getParameter("callback");

	if (cb != null) {
		scriptTag = true;
		response.setContentType("text/javascript");
	} else {
		response.setContentType("application/x-json");
	}

	if (scriptTag) {
		out.write(cb + "(");
	}

	out.print(request.getAttribute("result"));
	if (scriptTag) {
		out.write(");");
	}
%>
